package tripModel;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Location extends Model<Location> {
	/**
		 * 
		 */
	private static final long serialVersionUID = 1L;
	public static final Location dao = new Location();

	public List<Limg> getLimgs() {
		return Limg.dao.find("select liID,liimgPath from limg where liLID=?", getLong("lID"));

	}

	public Limg getLimg() {
		return Limg.dao.findFirst("select liID,liimgPath from limg where liLID=? and liisTop='1'", getLong("lID"));
	}
}
